package com.rain.shoppingscienceproj.http;

/**
 * 网络返回基类 支持泛型
 * Created by Rain on 2017/6/13 0013.
 */

public class BaseResponse<T> {

    public String message;
    public int code;
    private T data;

    public String getMsg() {
        return message;
    }

    public void setMsg(String msg) {
        this.message = msg;
    }

    public int getStatus() {
        return code;
    }

    public void setStatus(int status) {
        this.code = status;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isOk() {
        return code == 0;
    }
}
